<template>
  <catch-table :form-create="formCreate" v-bind="table"/>
</template>

<script>
import renderTable from '@/views/render-table-form'

export default {
  mixins: [renderTable],
  data() {
    return {
      tableFrom: ''
    }
  },
  methods: {
    beforeSubmit(row) {
      if (row.form.parent_id instanceof Array) {
        row.form.parent_id = row.form.parent_id.length > 0 ? row.form.parent_id.pop() : 0
      }
      return row
    },
    zidingyi(e) {
      console.log(e)
    },
    tgsh(e) {
      console.log(e)
      this.$confirm('确认打款之后在通过审核！', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        console.log(123)
        this.$http({
          url: 'WithdrawIncome/audit',
          method: 'post',
          data: {
            id: e.id,
            balance_status: 2
          }

        })
      }).catch(e => {
        //
      })
    }
  }

}
</script>
